<?php
$time = 1560345987;
$ctime = 1560345736;
$ytime = $time-$ctime;
//转分钟秒钟
$ftime = floor($ytime/60);
$mtime = $ytime%60;
echo $ftime.'分'.$mtime.'秒';
/*array(4) {
  ["binary"]=>
  array(5) {
    [12]=>
    string(2) "no"
    [15]=>
    string(3) "yes"
    [5]=>
    string(3) "yes"
    [11]=>
    string(2) "no"
    [8]=>
    string(3) "yes"
  }
  ["single"]=>
  array(5) {
    [298]=>
    string(1) "D"
    [846]=>
    string(1) "A"
    [1133]=>
    string(1) "D"
    [984]=>
    string(1) "C"
    [1233]=>
    string(1) "A"
  }
  ["multiple"]=>
  array(5) {
    [2]=>
    array(2) {
      [0]=>
      string(1) "A"
      [1]=>
      string(1) "B"
    }
    [3]=>
    array(2) {
      [0]=>
      string(1) "C"
      [1]=>
      string(1) "D"
    }
    [5]=>
    array(3) {
      [0]=>
      string(1) "A"
      [1]=>
      string(1) "B"
      [2]=>
      string(1) "D"
    }
    [4]=>
    array(2) {
      [0]=>
      string(1) "A"
      [1]=>
      string(1) "D"
    }
    [6]=>
    array(2) {
      [0]=>
      string(1) "A"
      [1]=>
      string(1) "C"
    }
  }
  ["fill"]=>
  array(5) {
    [7]=>
    string(9) "晶体管"
    [6]=>
    string(4) "3306"
    [5]=>
    string(2) "80"
    [3]=>
    string(3) "tca"
    [4]=>
    string(7) "implode"
  }
}
